package com.ylbh.modules.storereturn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.storereturn.dto.StoreReturnDTO;
import com.ylbh.common.pojo.storereturn.vo.StoreReturnVO;
import com.ylbh.modules.storereturn.entity.ShoppingStoreReturn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ShoppingStoreReturnMapper extends BaseMapper<ShoppingStoreReturn> {

    /**
     * 联盟店退换货列表
     * @param page
     * @return
     */
    List<ShoppingStoreReturn> selectStoreReturnList(@Param(value = "dto") StoreReturnDTO dto, Page<Object> page);

    /**
     * 联盟店退换货详情
     * @param returnId
     * @return
     */
    StoreReturnVO selectStoreReturnById(String returnId);
}
